]> dgit.raspbian.org Git - gnome-shell.git/commit
slider: Cache custom style properties
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 26 Oct 2023 18:09:23 +0000 (20:09 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 21 Nov 2023 18:55:47 +0000 (18:55 +0000)
commita6706bd2cabe13915c75a7a0779efecdbf569f42
treecf6c50b3c3f684828a513c2b3462e73a8be595f7
parenta639fb0fc43aca1e429d45e4e24dd38e4ebc5d79
slider: Cache custom style properties

Custom properties are not cached by the theme node itself, so
looking them up repeatedly at every repaint is relatively
expensive.

Avoid this by caching the values ourselves at style changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2994>
js/ui/slider.js